package toolkit;

public class Counter
{
	private long count = 0;

	public void increment()
	{
		increment(1);
	}

	public void increment(int delta)
	{
		if (delta > 0)
		{
			count += delta;
		}
	}

	public void decrement()
	{
		decrement(1);
	}

	public void decrement(int delta)
	{
		if (delta > 0)
		{
			count -= delta;
		}
	}

	public long count()
	{
		return count;
	}

	@Override
	public String toString()
	{
		return Long.toString(count);
	}
}
